import {Context} from 'egg';

export default ()=>{
    return async (ctx:Context,next)=>{
        const say=await ctx.service.userService.say();
        ctx.socket.emit('res','package'+say);
        await next();
        console.log('package response');
    }
}